#pragma once
/// Copyright 2012, Alex Averian, Yonan Research
/// Released under BSD Licence


#if (WINVER >=_WIN32_WINNT_WIN8) 


namespace micro
{
namespace core
{


class QBarrier
{
	SYNCHRONIZATION_BARRIER  m_barrier;

public:
    QBarrier();
    ~QBarrier();
    bool Init(int nrThreads, int nrSpin);
	bool Enter(DWORD dwFlags);
	bool Delete();
};

}
}//


#endif